package com.mrobuy.jdvc.service.impl;

import com.gavel.parser.MYMROSkuParser;
import com.gavel.parser.SkuItem;
import com.mrobuy.jdvc.Result;
import com.mrobuy.jdvc.dao.*;
import com.mrobuy.jdvc.entity.*;
import com.mrobuy.jdvc.service.ItemService;
import com.mrobuy.jdvc.service.ShelvesService;
import com.mrobuy.util.IdentifierGen;
import com.mrobuy.util.Pagination;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Service("itemService")
public class ItemServiceImpl implements ItemService {


    private static Logger LOG = LoggerFactory.getLogger(ItemService.class);

    @Autowired
    private ItemDao itemDao;

    @Override
    public Pagination load(int start, int length, Item condition) {

        return itemDao.load(start, length, condition);

    }

    @Override
    public List<Item> queryItems(String productcode, String type) {
        return itemDao.queryItems(productcode, type);
    }

    @Override
    public Item queryItem(String code, String type) {
        return itemDao.queryItem(code, type);
    }
}
